var MongoClient = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/mydb";

MongoClient.connect(url, function (err, db) {
  if (err) throw err;
  var dbase = db.db("mydb"); //here
  dbase.collection("user").find({}, { _id: false, name: true, address: true }).toArray(function (err, result) {
    if (err) throw err;
    console.log(result);
    db.close();
  });
});
